package com.market.exception;

public class OutOfStockException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 214152185559675337L;

	private String number;
	private String name;
	private Long inventory;

	public OutOfStockException(String title, String message, Long inventory) {
		this.number = title;
		this.name = message;
		this.inventory = inventory;
	}

	public String getNumber() {
		return number;

	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getInventory() {
		return inventory;
	}

	public void setInventory(Long inventory) {
		this.inventory = inventory;
	}

	@Override
	public String toString() {
		return "OutOfStockException [number=" + number + ", name=" + name
				+ ", inventory=" + inventory + "]";
	}

}
